package com.zby.lease.model.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.zby.lease.model.enums.ItemType;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.dromara.autotable.annotation.AutoColumn;
import org.dromara.autotable.annotation.AutoTable;
import org.dromara.autotable.annotation.mysql.MysqlTypeConstant;

@Data
@Schema(description = "图表信息")
@TableName(value = "graph_info")
@AutoTable
public class GraphInfo extends BaseEntity{
    private static final long serialVersionUID = 1L;
    @Schema(description = "图表名称")
    @TableField(value = "name")
    private String name;
    @Schema(description = "所有图表类型")
    @TableField(value = "item_type")
    @AutoColumn(type = MysqlTypeConstant.INT)
    private ItemType type;
    @Schema(description = "图表所有对象的id")
    @TableField(value = "item_id")
    private Long itemId;
    @Schema(description = "图表的地址")
    @TableField(value = "url")
    private String url;
}
